import { http } from '@/utils'

// 发布案例
export function postCaseApi(data: any) {
  return http.post<any>(
    '/network_security_science/submit_network_security_case',
    data
  )
}

// 获取案例
export function getCaseApi(query: any) {
  return http.get<any>(
    '/network_security_science/get_network_security_case',
    query
  )
}

// 获取案例详情
export function getCaseDetailApi(query: any) {
  return http.get<any>(
    '/network_security_science/get_network_security_case_detail',
    query
  )
}

// 获取案例评论
export function getCaseCommentApi(query: any) {
  return http.get<any>(
    '/network_security_science/get_network_security_case_comment',
    query
  )
}

// 发布评论
export function postCaseCommentApi(data: any) {
  return http.post<any>(
    '/network_security_science/submit_network_security_case_comment',
    data
  )
}
